package cn.ligoo.part.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.ligoo.part.dao.TypeSelLevelDao;
import cn.ligoo.part.domain.TypeSelLevel;
import cn.ligoo.part.service.TypeSelLevelService;

/**
 * @author Jin,QingHua
 * @version 2013-10-23 13:11:20
 */
@Service
public class TypeSelLevelServiceImpl implements TypeSelLevelService {

	@Resource
	private TypeSelLevelDao typeSelLevelDao;

	@Override
	public Long createTypeSelLevel(TypeSelLevel t) {
		this.typeSelLevelDao.insertEntity(t);
		return t.getId(); // ע��MyBatis��insert��iBATIS��ͬ��
	}

	@Override
	public int modifyTypeSelLevel(TypeSelLevel t) {
		return this.typeSelLevelDao.updateEntity(t);
	}

	@Override
	public int removeTypeSelLevel(TypeSelLevel t) {
		return this.typeSelLevelDao.deleteEntity(t);
	}

	@Override
	public TypeSelLevel getTypeSelLevel(TypeSelLevel t) {
		return this.typeSelLevelDao.selectEntity(t);
	}

	@Override
	public Long getTypeSelLevelCount(TypeSelLevel t) {
		return this.typeSelLevelDao.selectEntityCount(t);
	}

	@Override
	public List<TypeSelLevel> getTypeSelLevelList(TypeSelLevel t) {
		return this.typeSelLevelDao.selectEntityList(t);
	}

}
